home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
olrdrs
/
qwkndt1a.zip
/
WILDCAT.SCR
< prev
next >
Wrap
Text File
|
1992-11-06
|
2KB
|
61 lines
# Sample script for logging on to a Wildcat board running Tomcat.
# replace FIRSTNAME, LASTNAME, and YOURPASS with your first name,
# last name, and password. This is only a model, and will probably
# need to be modified to some degree.
#
# Wait for "First name?" prompt.
expect "ame?"
send "FIRSTNAME\r"
# Wait for "Last name? prompt.
expect "ame?"
send "LASTNAME\r"
# Wait for "Password:" prompt.
expect "ord:"
send "YOURPASS\r"
# Try to abort any opening screen with ^C
send "\c"
timeout 5
# Wait for end of bulletins menu. Keep hitting ^C <RETURN> until we
# get there.
pausestr "onstop" "S"
expect "to quit:" "\c\r" 10
# Don't read any bulletins, they'll be in the packet anyway. :-)
send "\r"
# Wait for main menu prompt.
expect "W T]:" "\r" 10
# Choose message menu.
send "M"
# Wait for message menu prompt.
expect "F D]:" "\r" 10
# Choose D (runs Tomcat on the board this was written for)
send "D"
# Wait for Tomcat prompt.
expect "Q ?]:" "\r" 10
# Beginning of .REP section, only done if there is a .REP packet
# waiting.
repbegin
# Send upload command.
send "U"
# Wait for "upload FOO.REP now"
expect ".REP now"
# Upload it.
upload
# Wait for Tomcat prompt again.
expect "Q ?]:" "\r" 10
# End of .REP section.
repend
# Choose download command.
send "D" "\r" 10
# Wait for "goodbye after transfer" prompt.
expect "transfer" "\r" 10
# Yes, we want to go bye-bye after transfer.
send "G"
# Wait for "Download FOO.QWK now" message.
expect ".QWK now" "\r" 10
# Download it.
download
# Wait for "Send H to hangup or <ENTER> to remain online"
expect "online" "S" 10
# Hangup.
send "H"